/**
 * Copyright &copy; 2012-2016
 * <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights
 * reserved.
 */
package com.thinkgem.jeesite.modules.advertising.entity;

import java.util.List;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.Dict;

/**
 * 广告图片管理Entity
 * 
 * @author JiangYongKang
 * @version 2016-12-15
 */
public class AdvertisingPohoto extends DataEntity<AdvertisingPohoto> {

    private static final long serialVersionUID = 1L;
    private String photoName; // 图片名称
    private String photoType; // 图片类型
    private String photoUrl; // 跳转链接
    private String photoPosition; // 图片位置

    private List<Dict> dictList; // 字典项

    public AdvertisingPohoto() {
        super();
    }

    public AdvertisingPohoto(String id) {
        super(id);
    }

    @Length(min = 0, max = 255, message = "图片名称长度必须介于 0 和 255 之间")
    public String getPhotoName() {
        return photoName;
    }

    public void setPhotoName(String photoName) {
        this.photoName = photoName;
    }

    @Length(min = 0, max = 255, message = "图片类型长度必须介于 0 和 255 之间")
    public String getPhotoType() {
        return photoType;
    }

    public void setPhotoType(String photoType) {
        this.photoType = photoType;
    }

    @Length(min = 0, max = 255, message = "跳转链接长度必须介于 0 和 255 之间")
    public String getPhotoUrl() {
        return photoUrl;
    }

    public void setPhotoUrl(String photoUrl) {
        this.photoUrl = photoUrl;
    }

    public String getPhotoPosition() {
        return photoPosition;
    }

    public void setPhotoPosition(String photoPosition) {
        this.photoPosition = photoPosition;
    }

    public List<Dict> getDictList() {
        return dictList;
    }

    public void setDictList(List<Dict> dictList) {
        this.dictList = dictList;
    }

}